home *** CD-ROM | disk | FTP | other *** search
- -- background: 2614 from stack: in
- -- bmap block id: 3875
- -- flags: 4000
- -- background id: 0
- -- name: Inventory
-
-
- -- part 1 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=98 top=55 right=69 bottom=204
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: StockNumber
-
-
- -- part 2 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=98 top=77 right=90 bottom=287
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: Description
-
-
- -- part 3 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=116 top=99 right=111 bottom=174
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: QuantityOnHand
- ----- HyperTalk script -----
- on closeField
- send "closeField" to field "TotalValue"
- send "closeField" to field "TotalCost"
- end closeField
-
-
-
- -- part 4 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=351 top=100 right=114 bottom=409
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: QuantityOnOrder
-
-
- -- part 6 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=364 top=280 right=308 bottom=392
- -- title width / last selected line: 0
- -- icon id / first selected line: 20098 / 20098
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Quit
- ----- HyperTalk script -----
- on mouseUp
- go home
- end mouseUp
-
-
-
- -- part 7 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=116 top=118 right=132 bottom=175
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: SellPrice
- ----- HyperTalk script -----
- on closeField
- set numberFormat to ".00"
- get field "SellPrice" * 1
- put it into field "SellPrice"
- send "closeField" to field "TotalValue"
- end closeField
-
-
-
- -- part 8 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=351 top=120 right=136 bottom=408
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: CostPrice
- ----- HyperTalk script -----
- on closeField
- set numberFormat to ".00"
- get field "CostPrice" * 1
- put it into field "CostPrice"
- send "closeField" to field "TotalCost"
- end closeField
-
-
-
- -- part 9 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=118 top=140 right=156 bottom=227
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: Location
-
-
- -- part 10 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=351 top=140 right=155 bottom=407
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: VendorCode
-
-
- -- part 11 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=428 top=110 right=125 bottom=508
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: New Item
- ----- HyperTalk script -----
- on mouseUp
- put "Use the Tab key to move around the screen." into field help
- show field help
- Wait For 2 Seconds
- hide field help
- doMenu "New Card"
- tabKey
- end mouseUp
-
-
-
- -- part 12 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=442 top=35 right=54 bottom=492
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Search
- ----- HyperTalk script -----
- on mouseUp
- go to background blank
- ask "What stock number do you want?"
- find it in field 1
- if field 1 is empty then
- answer "That item is not in the system." with "Okay"
- go to first card in background "Inventory"
- end if
- end mouseUp
-
-
-
- -- part 13 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=493 top=35 right=54 bottom=510
- -- title width / last selected line: 0
- -- icon id / first selected line: 16560 / 16560
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Next
- ----- HyperTalk script -----
- on mouseUp
- go to next card of this background
- end mouseUp
-
-
- -- part 14 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=424 top=35 right=53 bottom=439
- -- title width / last selected line: 0
- -- icon id / first selected line: 15420 / 15420
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Previous
- ----- HyperTalk script -----
- on mouseUp
- go to previous card of this background
- end mouseUp
-
-
-
- -- part 16 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=427 top=164 right=181 bottom=507
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Returns
- ----- HyperTalk script -----
- on mouseUp
- push card
- put field "StockNumber" into cItem
- go to background blank
- ask "How many of "&cItem&" were returned?"
- put it into returned
- go to background inventory
- find cItem in field 1
- put field "QuantityOnHand" + returned into field 3
- send "closeField" to field "TotalValue"
- send "closeField" to field "TotalCost"
- set numberFormat to "0"
- put field "PeriodSales" - returned into field "PeriodSales"
- put field "YearlySales" - returned into field "YearlySales"
- end mouseUp
-
-
-
- -- part 17 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=427 top=144 right=160 bottom=507
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Sales
- ----- HyperTalk script -----
- on mouseUp
- put field "StockNumber" into itemno
- put field "QuantityOnHand" into quantity
- go to background blank
- ask "How many of "&itemno&" were sold?"
- put it into sold
- if quantity < sold
- then
- answer "There aren't that many in stock!" with "Cancel"
- go to background inventory
- find itemno in field 1
- else
- go to background inventory
- find itemno in field 1
- put quantity - sold into field 3
- send "closeField" to field "TotalValue"
- send "closeField" to field "TotalCost"
- set numberFormat to "0"
- put field "PeriodSales" + it into field "PeriodSales"
- put field "YearlySales" + it into field "YearlySales"
- put the date into field "LastSold"
- end if
- end mouseUp
-
-
-
- -- part 18 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=427 top=185 right=200 bottom=508
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Orders
- ----- HyperTalk script -----
- on mouseUp
- push card
- put field "StockNumber" into cItem
- go to background blank
- ask "How many of "&cItem&" are ordered?"
- put it into ordered
- go to background inventory
- find cItem in field 1
- put ordered into field "QuantityOnOrder"
- put the date into field "LastOrdered"
- end mouseUp
-
-
-
- -- part 19 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=427 top=205 right=220 bottom=509
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Receipts
- ----- HyperTalk script -----
- on mouseUp
- push card
- put field "StockNumber" into cItem
- put field "QuantityOnOrder" into ordered
- go to background blank
- ask "How many of "&cItem&" were received?"
- put it into received
- if ordered < received
- then
- answer "There aren't that many on order!" with "Cancel"
- put 0 into received
- go to background inventory
- find cItem in field 1
- else
- find cItem in field 1
- put field "QuantityOnHand" + received into field 3
- put ordered - received into field "QuantityOnOrder"
- send "closeField" to field "TotalValue"
- send "closeField" to field "TotalCost"
- put the date into field "LastReceived"
- end if
- end mouseUp
-
-
-
-
- -- part 20 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=242 top=10 right=32 bottom=271
- -- title width / last selected line: 0
- -- icon id / first selected line: 19678 / 19678
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: About
- ----- HyperTalk script -----
- on mouseUp
- go to background "About"
- end mouseUp
-
-
-
- -- part 22 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=10 top=206 right=221 bottom=68
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: PeriodSales
-
-
- -- part 23 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=92 top=206 right=220 bottom=150
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: YearlySales
-
-
- -- part 24 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=173 top=206 right=221 bottom=241
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: LastOrdered
-
-
- -- part 25 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=261 top=206 right=220 bottom=329
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: LastReceived
-
-
- -- part 26 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=343 top=206 right=220 bottom=410
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: LastSold
-
-
- -- part 27 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=93 top=229 right=242 bottom=152
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: TotalValue
- ----- HyperTalk script -----
- on closeField
- set numberFormat to ".00"
- get field "QuantityOnHand" * field "SellPrice"
- put it into field "TotalValue"
- end closeField
-
-
-
- -- part 28 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=352 top=229 right=243 bottom=412
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: TotalCost
- ----- HyperTalk script -----
- on closeField
- set numberFormat to ".00"
- get field "QuantityOnHand" * field "CostPrice"
- put it into field "TotalCost"
- end closeField
-
-
-
- -- part 29 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=428 top=71 right=87 bottom=508
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Modify
- ----- HyperTalk script -----
- on mouseUp
- put "Use the Tab key to move around the screen." into field help
- show field help
- Wait For 2 Seconds
- hide field help
- tabKey
- end mouseUp
-
-
-
- -- part 30 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=428 top=91 right=106 bottom=508
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Delete
- ----- HyperTalk script -----
- on mouseUp
- answer "Do you really want to delete this card?" with "Yes" or "No"
- if it is "Yes" then
- doMenu Delete Card
- go to previous card
- end if
- end mouseUp
-
-
-
- -- part 31 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=426 top=264 right=278 bottom=508
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Sort
- ----- HyperTalk script -----
- on mouseUp
- sort by field 1 of this background
- go to first card of background "Inventory"
- end mouseUp
-
-
-
- -- part 33 (field)
- -- low flags: 80
- -- high flags: 0001
- -- rect: left=5 top=10 right=33 bottom=422
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 3
- -- text size: 14
- -- style flags: 768
- -- line height: 18
- -- part name: help
-
-
- -- part 34 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=426 top=282 right=297 bottom=508
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Period End
- ----- HyperTalk script -----
- on mouseUp
- go to first card of background "Inventory"
- put 0 into costofgoods
- put field "StockNumber" into start
- put field "PeriodSales" into psales
- put field "CostPrice" into icost
- put psales * icost into tcost
- add tcost to costofgoods
- put "0" into field "PeriodSales"
- go to next card of this background
- repeat until start = field "StockNumber"
- put field "PeriodSales" into psales
- put field "CostPrice" into icost
- put psales * icost into tcost
- add tcost to costofgoods
- set the numberFormat to "0"
- put "0" into field "PeriodSales"
- go to next card of this background
- end repeat
- go to background "Blank"
- set the numberFormat to "$0.00"
- answer "Period Cost Of Goods Sold = $"&costofgoods with "Okay"
- go to first card of background "Inventory"
- end mouseUp
-
-
-
-
-
-
- -- part 35 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=426 top=301 right=315 bottom=509
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Year End
- ----- HyperTalk script -----
- on mouseUp
- go to first card of background "Inventory"
- put 0 into costofgoods
- put field "StockNumber" into start
- put field "YearlySales" into ysales
- put field "CostPrice" into icost
- put ysales * icost into tcost
- add tcost to costofgoods
- put "0" into field "YearlySales"
- go to next card of this background
- repeat until start = field "StockNumber"
- put field "YearlySales" into ysales
- put field "CostPrice" into icost
- put ysales * icost into tcost
- add tcost to costofgoods
- set the numberFormat to "0"
- put "0" into field "YearlySales"
- go to next card of this background
- end repeat
- go to background "Blank"
- set the numberFormat to "$0.00"
- answer "Yearly Cost Of Goods Sold = $"&costofgoods with "Okay"
- go to first card of background "Inventory"
- end mouseUp
-
-
- -- part 36 (button)
- -- low flags: 00
- -- high flags: 8003
- -- rect: left=426 top=244 right=259 bottom=508
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Print Card
- ----- HyperTalk script -----
- on mouseUp
- doMenu Print Card
- end mouseUp
-
-
-
- -- part 37 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=113 top=294 right=310 bottom=175
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: Minimum
-
-
- -- part 38 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=182 top=294 right=309 bottom=242
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: Maximum
-
-
- -- part 39 (field)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=259 top=293 right=308 bottom=319
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 65535
- -- font id: 3
- -- text size: 9
- -- style flags: 0
- -- line height: 12
- -- part name: Reorder
-